<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.Date"
    import="javax.servlet.http.HttpSession"
    import="java.sql.*"
	import="com.lsnu.wzy.po.*"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加预约</title>
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<form action="<c:url value='/appointOption/addAppointment2' />" method="POST" >
<div class="container">
   <div class="jumbotron">
        <h2>添加预约记录</h2>
    </div>
<table class="table table-hover text-center" style="font-size:30px ;font-family:仿宋;" >
        <thead class="thead-dark">
        <tr>
               <th width="43%" class="text-center">字段名</th>
               <th width="57%" class="text-center">字段值</th>
             </tr>
           </thead>
           <tbody>
             <tr class="info text-primary"  height="80">
               <td>预约编号</td>
               <td><select name="aID">
					<option>${aID}</option>
					</select></td>
             </tr>
             </tr>
             <tr class="success text-success" height="80">
               <td height="60">患者姓名</td>
               <td><select name="pName">
					<option value="<%=((Patient)request.getSession().getAttribute("patient")).getpName()%>">
					<%=((Patient)request.getSession().getAttribute("patient")).getpName()%>
					</option>
					<%-- <c:forEach items="${patient}" var="patient">	
						<option>${patient}</option>
					</c:forEach> --%>
				</select></td>
             </tr>
             <tr class="active text-active" height="80">
               <td height="60">预约时间</td>
	           <td><input type="Date" name="pDate" readonly="readonly" value="${dateTime}"></td>
             </tr>
             <tr class="success text-success" height="80">
               <td height="60">预约医生</td>
               <td><select name="dName">
					<!-- <option value="请选择医生">请选择医生</option> -->
					<option>${dName}</option>
					</select></td>
             </tr>
             <tr class="info text-primary"  height="80">
               <td>预约科室</td>
               <td><select name="department">
					<!-- <option value="请选择科室">请选择科室</option> -->
						<c:forEach items="${department}" var="departmentlist">	
							<option>${departmentlist}</option>
						</c:forEach>
					</select></td>
             </tr>
             <tr>
               <td colspan="2"><input type="submit" class="btn btn-primary btn-lg" value="保存"></td>
             </tr>
             </tbody>
</table>
</div>
</form>
</body>
</html>
